package com.example.yeujian5.yuejian5.service;

import com.example.yeujian5.yuejian5.bean.ActivityBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by wangmengmeng on 2017/10/9.
 */

public interface ActivityService {

    //获取活动接口
    @GET("lists/mod/activity")
    Call<List<ActivityBean>> getActivityList(

    );

    //获取活动详情接口
    @GET("get/mod/activity")
    Call<ActivityBean> getActivityById(
            @Query("id") String id
    );

    //活动报名
    @GET("create/mod/{mod}/participantname/{participantname}/act_id/{act_id}/participanttel/{participanttel}/" +
            "adultnum/{adultnum}/studentnum/{studentnum}/paytype/{paytype}/pay/{pay}/paynotice/{paynotice}/" +
            "insurance/{insurance}" +
            "/userid/{userid}/SessionID/{SessionID}")
    Call<Integer> signActivity(
            @Path("mod") String mod,
            @Path("participantname") String participantname,
            @Path("act_id") String act_id,
            @Path("participanttel") String participanttel ,
            @Path("adultnum") String adultnum,
            @Path("studentnum")String studentnum,
            @Path("paytype") String paytype,
            @Path("pay") String pay,
            @Path("paynotice") String paynotice,
            @Path("insurance") String insurance,
            @Path("userid") int userid,
            @Path("SessionID") String SessionID
    );

}
